package com.zbl.zblproject.pay.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbl.zblproject.pay.entity.PayOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/11/5
 */
@Repository
public interface PayOrderMapper extends BaseMapper<PayOrder> {

    /**
     * 查询对应订单的线上订单号
     * @param orderSn
     * @return
     */
    @Select("SELECT online_order_sn FROM zbl_pay_order WHERE online_order_sn = #{orderSn}")
    String selectOnlineOrderOfPayOrder(@Param("orderSn") String orderSn);



}
